<template>
  <div>
    <h2>我是关于</h2>
    <p>我是关于内容：哈哈哈</p>
  </div>
</template>
<script>
export default {
  name: 'routerHome',
  data() {
    return {
    }
  },
  methods: {
  },
  created(){
    // $route 拿到的是处于活跃状态的路由
    console.log(this.$route);
  },
  mounted(){
    console.log('routerAbout mounted');
  },
  updated(){
    console.log('routerAbout updated');
  },
  // deactivated 和 activated 想使用需要 index 页面用 keep-alive 包住 router-view
  deactivated(){
    console.log('routerAbout deactivated');
  },
  activated(){
    console.log('routerAbout activated');
  },
}
</script>
<style lang="scss" scoped>
h1,h2,h3{
  margin-bottom: 15px;
}
</style>
